package com.whuan.student.service;

import com.whuan.student.dataObject.PageObject;
import com.whuan.student.dataObject.Student;
import com.whuan.student.dto.StudentDTO;
import org.springframework.data.domain.Page;

import java.util.List;

public interface StudentService {

    Student findById(String studentId);

    List<Student> findAll();

    List<Student> findByUpClass();

    Student save(StudentDTO studentDTO);

    Integer save(List<StudentDTO> studentDTOList);

    Page<Student> findByUpClassWithPage(PageObject pageObject);

    List<Student> findByName(String name);
}
